package com.itheima.dao;

import com.itheima.pojo.Order;
import com.itheima.pojo.OrderManage;
import com.itheima.pojo.Setmeal;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderDao {

    public void add(Order order);

    public List<Order> findByCondition(Order order);

    public Map findById4Detail(Integer id);

    public Integer findOrderCountByDate(String date);

    public Integer findOrderCountAfterDate(String date);

    public Integer findVisitsCountByDate(String date);

    public Integer findVisitsCountAfterDate(String date);

    public List<Map> findHotSetmeal();

    long findCountByMemberId(Integer id);




    List<OrderManage> findByString(Map map);

    List<Setmeal> findSetmealIdByOrderId(int id);

    Date findOrderDateById(Integer id);

    void delete(Integer id);

    Map findById5Detail(Integer id);

    void edit(Map map);

    Integer findOrderIdByMemberId(Integer id);
}
